package com.springweb.unit2.annotatedOrXml;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.ImportResource;

import com.springweb.unit2.annotatedOrXml.impl.AnotherCDPlayer;

@Configuration
@Import(CDConfig.class)
@ImportResource("classpath:/config/cd-config.xml")
public class CDPlayerConfig {
	@Bean("anotherCDPlayer")
	public MediaPlayer anotherCDPlayer(CompactDisc listDisc) {
		return new AnotherCDPlayer(listDisc);
	}
	
}
